Skip to main content

All Questions

Tagged with
0votes
0answers
36views

How to know which completion function is being called?

I want to type somethingTabTab and know exactly which completion function gets called, so that I can use that function for completion of aliases. This is to solve the following problem: git push -d ...
awvalenti's user avatar
1vote
1answer
34views

Autocomplection with description in zsh

General overview This question complete this other one. I try to set an autocomplete for --test parameter who should suggest a list of possible values (Here “foo” and “bar”). Until theire, it pretty ...
fauve's user avatar
  • 1,412
1vote
1answer
38views

zsh autocompletion for parametre value

General overview Here is my auto complexion file: _triumphum_complete() { _arguments \ '(- 1 *)'{-h,--help}'[show help options]' \ '(- 1 *)--tui[Run the game selection interface]' \ '(- 1 *)'{-r,...
fauve's user avatar
  • 1,412
1vote
1answer
57views

zsh completion for custom script: URL + optional parameters

I have zsh completion for custom script, where one parameter must be URL (ie, string) and then there are several optional parameters: --AAA --BBB --CCC: _arguments -S : \ '--AAA' \ '--BBB' \ ...
Martin Vegter's user avatar
1vote
1answer
39views

zsh completion for umount: limit completion to one argument

when I use zsh completion for the umount command: umount /mnt/t<TAB> it completes the mounted filesystem /mnt/tmp. But when I accidentally press tab too many times, it tries to be too helpful, ...
Martin Vegter's user avatar
2votes
1answer
102views

zsh completion: complete from predefined list

My zsh script takes following arguments: ./script --connect server --foo 3 --bar 5 name --foo and --bar take integers, name is the only non-option argument, and --connect should complete from ...
Martin Vegter's user avatar
1vote
1answer
66views

How to disable "long descriptions" of commands in ZSH

I have a program named fhome that provides shell completion for Zsh: $ fhome <tab> config -- Manage system configuration event -- Manage events help h -- Shows a list of commands or ...
Bartek Pacia's user avatar
1vote
1answer
149views

zsh completion: complete --options for custom script

I have zsh completion rule for custom script. My script can take zero or more options (starting with -) and zero or more arbitrary strings (patterns): _arguments -S : \ '--foo' \ '--bar' \ ...
Martin Vegter's user avatar
1vote
2answers
81views

zsh completion: complete block devices in /dev

for my script, I need to complete block devices in /dev, so that when I do my_script.sh <TAB> it will complete /dev/ and offer me all disks that are listed in /dev (not in subdirectories). So ...
Martin Vegter's user avatar
3votes
1answer
182views

zsh completion: duplicate commands

Lets say I have an alias for grep. When I use zsh completion, it will offer grep twice (once as command, once as alias): gr<TAB> grep grep I found I can use ignored-patterns specifically for ...
Martin Vegter's user avatar
0votes
0answers
191views

Zsh: make single file selection smart, stylish, and functionally correct (highlights, completions below cursor, etc)

I would like to have a near-flawless "single file selector" with zsh. So far I haven't seen one in questions as they tend to focus on zle settings for one's command line. Let's say we are ...
codepoet's user avatar
1vote
1answer
241views

Fish completion that depends on other flags

I have a command, that can connect to remote machines and so the completion should be based on which machine the user provided. That means that if the user pass -D DEVICE_ID I want the completion to ...
yotamN's user avatar
6votes
1answer
1kviews

zsh completion for make: only complete targets from Makefile

When I am in a directory with Makefile, and I use zsh completion for make: make <TAB> it completes two sets of completions: the targets from the Makefile files in current directory I only ...
Martin Vegter's user avatar
2votes
2answers
221views

Fish shell reports "math: Error: Missing operator" on tab completion

I noticed the error this morning, but I don't think I have changed anything last night, so I am very confused right now. Perhaps I updated some utilities on my system and it somehow broke the back ...
nalzok's user avatar
0votes
0answers
155views

Disable Bash completion for a single environmental variable

Suppose I have an environmental variable $SAVE_DIR=/etc/ used to return to a saved directory (here /etc/) from any Bash shell. Typing cd $SAV[Tab] expands to cd $SAVE_DIR which is quite convenient. ...
pip's user avatar
  • 121

153050per page
close